﻿
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;

using Swaf;
using Swaf.BizObj;
using Swaf.Gui;
using Swaf.Gui.AspNet2;
using Swaf.Security;

namespace Syrinx.Gui.AspNet.Ajax
{
	public class Tree : Nitobi.Tree, IBizObjListDisplay2, IAjaxClientControl
	{
		public Tree()
			:base()
		{
		}

		public Tree(ActiveWidget widget)
		{
			ID = widget.State.Id;
		}

		#region IBizObjListDisplay2 Members

		protected bool m_drivenByBizProc = true;
		public bool DrivenByBizProc { get { return m_drivenByBizProc; } set { m_drivenByBizProc = value; } }

		public string DataDetailBizRule
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public string DataSourceBizRule
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public string DataSourceBizRuleParam
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		#endregion

		#region IBizObjListDisplay Members

		public event BizObjChanged BizObjAdded;

		public event BizObjChanged BizObjDeleted;

		public event BizObjSelectedInfo BizObjSelected;

		public event BizObjChanged BizObjUpdated;

		public Privileges EditPrivilege
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public string MaxElements
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public IBizObj SelectedBizObj
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public object SelectedBizObjKeyValue
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public void getSelectedBizObjs(IBizObjList selected)
		{
			throw new NotImplementedException();
		}

		public void refresh()
		{
			throw new NotImplementedException();
		}

		public void setSelectedBizObjs(IBizObjList selected)
		{
			throw new NotImplementedException();
		}

		public void showBizObjs(IBusinessProcess bizproc, IBizObjCursor list)
		{
			throw new NotImplementedException();
		}

		public void updateBizObjs()
		{
			throw new NotImplementedException();
		}

		#endregion

		#region IWidget Members

		public BizProcWidgetType BizProcWidgetType
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public string ParentBizProcIds
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}

		public string WidgetId
		{
			get { throw new NotImplementedException(); }
		}

		#endregion

		#region IAjaxClientControl Members

		public bool CreateOnLoad
		{
			set { throw new NotImplementedException(); }
		}

		public void setState(System.Xml.XmlElement clientState)
		{
			throw new NotImplementedException();
		}

		public void getState(System.Xml.XmlElement clientState, string pageHtml)
		{
			throw new NotImplementedException();
		}

		public void processAjaxEvent(System.Xml.XmlElement eventInfo)
		{
			throw new NotImplementedException();
		}

		public bool NeedToGenerateHtmlWithServerControls
		{
			get { throw new NotImplementedException(); }
		}

		#endregion
	}
}
